package com.quanshu.shop.sort.entity;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 作者  李哲
 * 创建时间 2018/7/23
 * 邮箱 lizhetongliao@163.com
 * 说明
 **/
@Data
public class SortTypeEntity implements Serializable {
    /**
     * code : 1
     * msg : 请求成功
     * data : [{"id":"57","name":"主营爆款","img":"/upload/category/20180717190504.png","children":[{"id":"68","name":"主营爆款","img":"/upload/category/20180717191045.png"}]},{"id":"32","name":"美食生鲜","img":"/upload/category/20180717190557.png","children":[{"id":"52","name":"三安优农爆款产品","img":"/upload/category/20180717191140.png"},{"id":"33","name":"米面粮油","img":"/upload/category/20180717191201.png"},{"id":"35","name":"酒类","img":"/upload/category/20180717191250.png"},{"id":"39","name":"休闲食品","img":"/upload/category/20180717191314.png"},{"id":"40","name":"南北干货","img":"/upload/category/20180717191331.png"},{"id":"41","name":"新鲜水果","img":"/upload/category/20180717191347.png"}]},{"id":"30","name":"家用电器","img":"/upload/category/20180717190529.png","children":[{"id":"42","name":"厨房小电","img":"/upload/category/20180717191536.png"},{"id":"43","name":"净化器","img":"/upload/category/20180717191549.png"},{"id":"31","name":"电视","img":"/upload/category/20180717191408.png"},{"id":"34","name":"生活小电","img":"/upload/category/20180717191435.png"},{"id":"36","name":"洗衣机","img":"/upload/category/20180717191458.png"},{"id":"37","name":"冰箱","img":"/upload/category/20180717191509.png"},{"id":"38","name":"空调","img":"/upload/category/20180717191525.png"}]},{"id":"4","name":"电子数码","img":"/upload/category/20180717190710.png","children":[{"id":"66","name":"电子周边","img":"/upload/category/20180717192016.png"},{"id":"50","name":"电子乐器","img":"/upload/category/20180717191948.png"},{"id":"24","name":"手机","img":"/upload/category/20180717191633.png"},{"id":"16","name":"电脑","img":"/upload/category/20180717192032.png"}]},{"id":"44","name":"运动户外","img":"/upload/category/20180717190744.png","children":[{"id":"65","name":"户外装备","img":"/upload/category/20180717192049.png"},{"id":"58","name":"健身 骑行","img":"/upload/category/mobile/20180706101411.jpg"}]},{"id":"1","name":"美容护理","img":"/upload/category/20180717190731.png","children":[{"id":"7","name":"护肤护发","img":"/upload/category/20180717192108.png"}]},{"id":"46","name":"箱包饰品","img":"/upload/category/20180717190832.png","children":[{"id":"71","name":"珍珠首饰","img":""},{"id":"64","name":"礼品","img":"/upload/category/20180717192323.png"},{"id":"54","name":"手表","img":"/upload/category/20180717192211.png"},{"id":"59","name":"箱包","img":"/upload/category/20180717192252.png"}]},{"id":"49","name":"家居百货","img":"/upload/category/20180717190909.png","children":[{"id":"60","name":"厨具","img":"/upload/category/20180717192420.png"},{"id":"62","name":"生活日用","img":"/upload/category/20180717192445.png"},{"id":"67","name":"母婴用品","img":"/upload/category/20180717192521.png"},{"id":"70","name":"字画","img":""},{"id":"63","name":"家纺","img":"/upload/category/20180717192458.png"}]}]
     */
    public List<DataEntity> data;

    @Data
    public class DataEntity {
        /**
         * id : 57
         * name : 主营爆款
         * img : /upload/category/20180717190504.png
         * children : [{"id":"68","name":"主营爆款","img":"/upload/category/20180717191045.png"}]
         */

        public String id;
        public String name;
        public String img;
        public boolean isSetect;
        public List<ChildrenEntity> children;

        @Data
        public class ChildrenEntity {
            /**
             * id : 68
             * name : 主营爆款
             * img : /upload/category/20180717191045.png
             */

            public String id;
            public String name;
            public String img;
        }
    }
}
